package com.xuecheng.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * Created in       2024/5/30 13:43
 *
 * @Author: Lin.Shi
 * @version: 1.0
 * @Description: 分页请求数据
 */
@Data
@ToString
@ApiModel(description = "分页参数信息")
public class PageParams {

    @ApiModelProperty(value = "页码", example ="1")
    //当前页码
    private Long pageNo = 1L;
    @ApiModelProperty(value = "条目", example ="1")
    //每页记录数默认值
    private Long pageSize = 10L;

    public PageParams() {

    }

    public PageParams(long pageNo, long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
